home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4581 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  835 b 

  1. Path: news.ov.com!news
  2. From: glenn@ov.com (Fletcher.Glenn@ov.com)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Can main() function be called?
  5. Date: 5 Feb 1996 23:29:30 GMT
  6. Organization: OpenVision
  7. Message-ID: <4f63sq$3ml@spanky.pls.ov.com>
  8. References: <4f1mv0$2fd@cloner4.netcom.com>
  9. Reply-To: glenn@ov.com
  10. NNTP-Posting-Host: foghorn.pls.ov.com
  11.  
  12. In article 2fd@cloner4.netcom.com, rozen@ix.netcom.com (Mike Rosenblyum ) writes:
  13. >I think that it cannot be done, I see no reasonalbe way how main()
  14. >could be called more than once.
  15. >
  16. >
  17. >   What is your thoughts on this?
  18. >
  19. >
  20.  
  21. main is a function like any other.  *All* functions can be called recursively.
  22. The gotcha is that when you return from a recursive call to main, you end up
  23. still in your program until you return from the top level main call (from the
  24. system).
  25.             Fletcher.Glenn@ov.com
  26.  
  27.  
  28.